<!DOCTYPE html>
<html>
<head>
    <title>代劳首页</title>
	<#include "/common/head.html" />
    <link rel="stylesheet" href="${base}/css/index.css" />
</head>
<body>
	<!--顶部导航-->
	<header class="mui-bar mui-bar-nav">
		<span class="schoolIcon">
			<i class="icon iconfont icon-student"></i>
			<i class="schoolTxt">
                <#if account??>
                      <#if account.school_name??>
                            ${account.school_name}
                           <#else>
                               请选择学校...
                       </#if>
                </#if>
            </i>
		</span>
		<h1 id="title" class="mui-title">首页</h1>
	</header>
	<div id="slider" class="mui-slider mui-fullscreen">
		<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
			<div class="mui-scroll">
				<#if typelist??>
					<#list typelist as classtype >
						<a class="mui-control-item <#if classtype?counter==1>mui-active</#if>" data-id="${classtype.id}" href="#item1mobile" data-wid="tab-top-subpage-${classtype?counter}.html">
							${classtype.typeName}
						</a>
					</#list>
				</#if>
			</div>
		</div>
	</div>
	<div id="pullrefresh" class="mui-content mui-scroll-wrapper pullFresh">
		<div class="mui-scroll">
		<!--任务列表-->
		<div class="taskWrap">

		</div>
		</div>
	</div>

    <script id="tpl-order" type="text/html">
        {{each list as item}}
        <div class="taskList clearfix">
            <div class="taskTitle pull-left">
                <span>{{item.type_name}}</span>
            </div>
            <div class="taskImg pull-left">
                <img src="image/head_{{item.order_type}}.jpg" alt="" />
            </div>
            <div class="taskTxt pull-left">
                <span class="txtTitle">{{item.order_title}}</span>
                <span class="txtSubTitle">{{item.order_desc}}</span>
                <span class="taskAddress"><i class="icon iconfont icon-ditu"></i>{{item.re_address}}</span>
                <span class="taskTime"><i class="icon iconfont icon-shijian"></i>{{item.re_begin_time}}{{if item.re_end_time}}-{{/if}}{{item.re_end_time}}</span>
                <span class="taskNum"><i class="icon iconfont icon-shang"></i>{{item.amount}}元</span>
            </div>
            <div class="goto taskState pull-right" id="{{item.id}}">抢</div>
        </div>
        {{/each}}
    </script>

	<!--底部导航-->
    <#include "/common/footer.html" />

	<div class="maskScholl">
		<div class="schoolWrap mui-clearfix">
			<div class="mui-pull-left schoolNav">
				<ul>
                    <#if Session.wx_school_info??>
                            <#list Session.wx_school_info as city>
                                <li  class=="<#if city_index == 0 >schoolNavActive</#if>" >${city.title}</li>
                            </#list>
                    </#if>
				</ul>
			</div>
            <#if Session.wx_school_info??>
                <#list Session.wx_school_info as city>
                    <div class="mui-pull-right schoolClass <#if city_index == 0 >schoolClassActive</#if>">
                        <ul>
                            <#list city.tSchools as school>
                                <li data-id="${school.id}">${school.school_name}</li>
                            </#list>
                        </ul>
                    </div>
                </#list>
            </#if>
		</div>
	</div>
</body>
<script src="${base}/js/index.js"></script>
</html>